package org.example.campus_sys_backend.service;

import org.example.campus_sys_backend.mapper.UserInfoMapper;
import org.example.campus_sys_backend.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public UserInfo queryUserByName(String loginName ){
        return userInfoMapper.queryUserByName(loginName);
    }

    public UserInfo queryUserById(Integer id){
        return userInfoMapper.queryUserById(id);
    }

    public Integer insertUser(UserInfo userInfo){
        return userInfoMapper.insertUser(userInfo);
    }





}
